
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Delete_Error</title>
    <!-- 引入Bootstrap的CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <!-- 引入自定义CSS -->
    <style>
        body {
            background-color: #f8f9fa;
        }

        .container {
            max-width: 500px;
            margin-top: 100px;
            text-align: center;
        }

        h2 {
            color: #dc3545;
            font-weight: bold;
            margin-bottom: 30px;
        }

        .alert {
            background-color: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 30px;
        }

        .btn-primary {
            background-color: #007bff;
            border-color: #007bff;
            border-radius: 5px;
        }

        .btn-primary:hover {
            background-color: #0069d9;
            border-color: #0062cc;
        }
    </style>
    <script>
        function goBack() {
            window.history.back();
        }
    </script>
</head>
<body>
<div class="container">
    <h2>Delete Error</h2>
    <div class="alert alert-danger">
        <p>"删除用户失败。"</p>
        <p th:text="${errorMessage}"></p>
    </div>
    <button class="btn btn-primary" onclick="goBack()"  th:href="@{/}">返回上一页</button>
</div>
</body>
</html>